<template>
	<page-body>
		<view class="page">
			<view class="flex align-stretch benben-position-layout flex wallet_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex align-center justify-between flex-sub wallet_fd0_0'>
					<view class='flex align-center wallet_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
						data-url="1">
						<text class='fu-iconfont2  wallet_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='wallet_fd0_0_c1'>我的钱包</text>
					<view class='flex align-center wallet_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-wrap align-end benben-flex-layout wallet_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch flex-sub wallet_fd1_0'>
					<text class='wallet_fd1_0_c0'>{{detal.user_money}}</text>
					<text class='wallet_fd1_0_c1'>当前余额（元）</text>
				</view>
				<view class='flex flex-wrap align-center wallet_fd1_1' @tap.stop="handleJumpDiy" data-type="navigateTo"
									:data-url="`/pages/my/recharge/recharge`">
					<image class='wallet_fd1_1_c0' mode="aspectFit" :src='STATIC_URL+"77.png"'></image>
					<text class='wallet_fd1_1_c1'>充值</text>
				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center wallet_flex_2">
				<view class='flex flex-wrap align-center wallet_fd2_0'>
				</view>
				<text class='wallet_fd2_1'>近30天记录</text>
				<text class='wallet_fd2_2' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/my/balanceDetails/balanceDetails`">查看全部</text>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout wallet_flex_3">
				<template v-for='(item,key0) in list'>
					<view class='flex flex-direction flex-wrap align-stretch wallet_fd3_0'>
						<view class='flex flex-wrap align-center'>
							<text class='flex-sub wallet_fd3_0_c0_c0'>{{item.remark}}</text>
							<!-- <text class='wallet_fd3_0_c0_c1'>-18.96</text> -->
							<text class='wallet_fd3_0_c0_c2' v-if="item.money_type == 1">{{item.change_money}}</text>
							<text class='wallet_fd3_0_c0_c1' v-if="item.money_type == 2">{{item.change_money}}</text>
						</view>
						<view class='flex flex-wrap align-center justify-between wallet_fd3_0_c1'>
							<text class='wallet_fd3_0_c1_c0'>{{item.create_time}}</text>
							<text class='wallet_fd3_0_c1_c0' v-if=" item.change_type == 5 || item.change_type == 6" @tap.stop="chakan(item)">详情 ></text>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
	    validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},
		 mixins: [pagingList],


		data() {
			return {
				"aid": "",
				detal:'',
				list:[],
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				aid
			} = options
			if (aid !== undefined) this.aid = aid
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.geteu36dfee37deefFunc()
			this.post64783bd767b3f()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			chakan(item){
				if(item.change_type == 5){
					uni.navigateTo({
						url: `/pages/order/detailsDd/detailsDd?order_sn=${item.order_sn}&order_id=${item.order_id}&orderType=1`
					})
				}else{
					uni.navigateTo({
						url: `/pages/order/legDdXq/legDdXq?order_sn=${item.order_sn}&order_id=${item.order_id}&orderType=2`
					})
				}
			},
			//钱包-余额明细
			geteu36dfee37deefFunc() {
			    this.minixPagingListsApi = global.apiUrls.post636dfee37deef;
			    this.pageingListApiMethod = 'get';
			    this.allowOnloadGetList = false;
			    this.pagingListPostDataContent = {
			        // money_type: '1',
			        type: '2',
			        user_role: '1'
			    }
			    this.listData = [];
			    this.list = this.listData;
			    this.pagingListToggle();
			
			},
			pagingListPostData() {
			    return this.pagingListPostDataContent
			},
			//钱包
			async post64783bd767b3f() {
				let datauser = await this.$api.get(global.apiUrls.post64783bd767b3f, {
		
				});
		
				if (datauser.data.code != 1) {
					this.$message.info(datauser.data.msg);
					return
				}
				let infouser = datauser.data;
				this.detal = infouser.data
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: url(image-path('76.png')) no-repeat;
		background-size: 100% auto;
	}

	.wallet_flex_0 {
		background: url(image-path('76.png')) no-repeat;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.wallet_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: var(--benbenFontColor3);
	}

	.wallet_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: var(--benbenFontColor3);
	}

	.wallet_fd0_0_c0 {
		width: 180rpx;
		height: 88rpx;
	}

	.wallet_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.wallet_flex_1 {
		background: var(--benbenbgColor1);
		margin: 24rpx 24rpx 0rpx 24rpx;
		background-size: 100% auto;
		border-radius: 16rpx;
		padding: 40rpx 40rpx 40rpx 40rpx;
	}

	.wallet_fd1_1_c1 {
		color: #FFFFFF;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
	}

	.wallet_fd1_1_c0 {
		width: 32rpx;
		height: 32rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.wallet_fd1_1 {
		background: #FF8E21;
		border-radius: 40rpx 40rpx 40rpx 40rpx;
		height: 64rpx;
		padding: 0rpx 39rpx 0rpx 39rpx;
		margin: 0rpx 0rpx 12rpx 0rpx;
	}

	.wallet_fd1_0_c1 {
		color: #999999;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.wallet_fd1_0_c0 {
		color: #333333;
		font-size: 48rpx;
		font-weight: 700;
		line-height: 57rpx;
	}

	.wallet_fd1_0 {
		margin: 0rpx 32rpx 0rpx 0rpx;
	}

	.wallet_flex_2 {
		padding: 32rpx 24rpx 24rpx 24rpx;
	}

	.wallet_fd2_2 {
		margin: 0rpx 0rpx 0rpx auto;
		color: #999999;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 40rpx;
	}

	.wallet_fd2_1 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		line-height: 45rpx;
	}

	.wallet_fd2_0 {
		background: var(--benbenbgColor0);
		width: 6rpx;
		height: 30rpx;
		border-radius: 4rpx;
		background-size: 100% auto;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.wallet_flex_3 {
		background: var(--benbenbgColor1);
		padding: 0rpx 24rpx 0rpx 24rpx;
		background-size: 100% auto;
		border-radius: 16rpx;
		margin: 0rpx 24rpx 0rpx 24rpx;
	}

	.wallet_fd3_0_c1_c0 {
		color: #999999;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 33rpx;
	}

	.wallet_fd3_0_c1 {
		margin: 16rpx 0rpx 0rpx 0rpx;
	}

	.wallet_fd3_0_c0_c1 {
		color: #999999;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 34rpx;
	}
	.wallet_fd3_0_c0_c2{
		color: red;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 34rpx;
	}

	.wallet_fd3_0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 40rpx;
		margin: 0rpx 32rpx 0rpx 0rpx;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
	}

	.wallet_fd3_0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}
</style>
